﻿using Dapper_Core.Model;
using Dapper_Core.Table;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.BLL.Interface
{
    public interface ISys_UserBusiness
    {
        /// <summary>
        /// 获取用户基本信息（用于保存到缓存中）
        /// </summary>
        /// <param name="user">用户编码</param>
        /// <returns></returns>
        BasicUserInfo GetBasicUserInfo(string user);

        /// <summary>
        /// 获取角色分页信息
        /// </summary>
        /// <param name="pageIndex">页面索引（从0开始）</param>
        /// <param name="rowsPerPage">每页数据行数</param>
        /// <param name="search">模糊查询条件</param>
        /// <param name="orderby">排序字段</param>
        /// <returns></returns>
        (List<Sys_User> users, int count) GetPageList(int pageIndex, int rowsPerPage, string search, string orderby);
    }
}